<div class="row-fluid">
	<div class="span6">
		<div class="widget">
			<div class="wTitle">
				<h5>User Information</h5>
				<?php //var_dump($user) ?>
			</div>
			<div class="wContent">
				<div class="formField" id="user_edit">
					<input type="hidden" value="<?=$user->id?>" id="user_id" />
					<div class="row-fluid">
						<!-- First Name -->
						<div class="span3">
							<span class="fLabel" for="f_name">First Name:</span>
						</div>
						<div class="span8">
							<input value="<?=$user->f_name ?>" id="f_name" class="ui-wizard-content" type="text" name="f_name" placeholder="First Name">
						</div>
						<div class="span1"></div>
					</div>
					<div class="row-fluid">
						<!-- Last Name  -->
						<div class="span3">
							<span class="fLabel" for="l_name">Last Name:</span>
						</div>
						<div class="span8">
							<input value="<?=$user->l_name ?>" id="l_name" class="ui-wizard-content" type="text" name="l_name" placeholder="Last Name">
						</div>
						<div class="span1"></div>
					</div>
					<div class="row-fluid">
						<!-- Username  -->
						<div class="span3">
							<span class="fLabel" for="username">Username:</span>
						</div>
						<div class="span8">
							<div class="iconField">
								<input value="<?=$user->user ?>" id="username"  disabled="disabled" class="ui-wizard-content" type="text" name="username" placeholder="Username">
								<img alt="" src="<?php echo base_url(); ?>assets/img/icons/14x14/member2.png">
							</div>
						</div>
						<div class="span1">
							<label class="error" for="username" generated="true">(*)</label>
						</div>
					</div>
					<div class="row-fluid">
						<!-- Password  -->
						<div class="span3">
							<span class="fLabel" for="password">Old Password:</span>
						</div>
						<div class="span8">
							<div class="iconField">
								<input id="oldpassword" class="ui-wizard-content" type="password" name="password" placeholder="Password">
								<img alt="" src="<?php echo base_url(); ?>assets/img/icons/14x14/lock3.png">
							</div>
						</div>
						<div class="span1">
							<label class="error" for="password" generated="true">(*)</label>
						</div>
					</div>
					<div class="row-fluid">
						<!-- Password  -->
						<div class="span3">
							<span class="fLabel" for="password">New Password:</span>
						</div>
						<div class="span8">
							<div class="iconField">
								<input id="newpassword" class="ui-wizard-content" type="password" name="password" placeholder="Password">
								<img alt="" src="<?php echo base_url(); ?>assets/img/icons/14x14/lock3.png">
							</div>
						</div>
						<div class="span1">
							<label class="error" for="password" generated="true">(*)</label>
						</div>
					</div>
					<div class="row-fluid">
						<!-- Re-Password  -->
						<div class="span3">
							<span class="fLabel" for="repassword">Re-Password:</span>
						</div>
						<div class="span8">
							<input id="repassword" class="ui-wizard-content" type="password" name="repassword" placeholder="Confirm password">
						</div>
						<div class="span1">
							<label class="error" for="repassword" generated="true">(*)</label>
						</div>
					</div>
					<div class="row-fluid">
						<!-- Email  -->
						<div class="span3">
							<span class="fLabel" for="email">Email:</span>
						</div>
						<div class="span8">
							<div class="iconField">
								<input value="<?=$user->email ?>" id="email" class="ui-wizard-content" type="text" name="email" placeholder="Email">
								<img alt="" src="<?php echo base_url(); ?>assets/img/icons/14x14/envlope1.png">
							</div>
						</div>
						<div class="span1">
							<label class="error" for="email" generated="true">(*)</label>
						</div>
					</div>
					<div class="row-fluid">
						<!-- Role  -->
						<div class="span3">
							<span class="fLabel" for="role">Role:</span>
						</div>
						<div class="span8">
							<div class="noSearch">
								<label class="formButton">
									<input type="radio" <?php echo $user->role == 1 ? 'checked="checked"' : '' ?> name="role" value="1">
									<span>User</span>
								</label>
								<label class="formButton">
									<input type="radio" <?php echo $user->role == 2 ? 'checked="checked"' : '' ?> name="role" value="2">
									<span>Editor</span>
								</label>
								<label class="formButton">
									<input type="radio" <?php echo $user->role == 3 ? 'checked="checked"' : '' ?> name="role" value="3">
									<span>Admin</span>
								</label>
							</div>
						</div>
						<div class="span1">
						</div>
					</div>
					<div class="formButtons">
						<div class="row-fluid">
							<div class="span12" align="center">
								<input id="edit_user_submit" class="button sButton bOlive ui-wizard-content ui-formwizard-button" type="button" value="Edit">
							</div>
						</div>
					</div>
					<div class="row-fluid hide" id="err_msg">
						<div class="span12" align="center">
							<div class="alert alert-error noMargin">
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="span4">
		<div class="widget">
			<div class="wTitle">
				<h5>Other Information</h5>
			</div>
			<div class="wContent">
				<div class="formField">
					<div class="row-fluid">
						<!-- Status tools -->
						<div class="span12">
							<dl class="dl-horizontal userInfor">
								<dt>Registration:</dt>
								<dd class="text-info"><?php echo date('d M Y - H:i', $user->created); ?></dd>
							</dl>
							<dl class="dl-horizontal userInfor">
								<dt>Last Login:</dt>
								<dd class="text-success">
								<?php 
									if ($user->login)
										echo date('d M Y - H:i', $user->login); 
									else 
										echo 'Not Login Yet';
								?>
								</dd>
							</dl>
							<?php if ($user->update) { ?>
								<dl class="dl-horizontal userInfor">
									<dt>Last Update:</dt>
									<dd class="text-warning"><?php echo date('d M Y - H:i', $user->update); ?></dd>
								</dl>
							<?php } ?>
						</div>
					</div>
				</div>
			</div>
		</div>
		<?php if($user->current == 0) { ?>
		<div class="divider"><div><span></span></div></div>
		<div class="row-fluid">
			<div class="span12">
				<div class="widget">
					<div class="wTitle">
						<h5>Manage Tools</h5>
					</div>
					<div class="wContent">
						<div class="formField">
							<div class="row-fluid">
								<!-- Status tools -->
								<div class="span3">
									<span class="fLabel" for="status">Status:</span>
								</div>
								<div class="span8">
									<label class="formButton">
										<input type="radio" <?php echo $user->status == 1 ? 'checked="checked"' : '' ?> value="1" name="status">
										<span class="text-success">Active</span>
									</label>
									<label class="formButton">
										<input type="radio" <?php echo $user->status == 0 ? 'checked="checked"' : '' ?> value="0" name="status">
										<span class="text-error">Deactive</span>
									</label>
								</div>
							</div>
							<div class="row-fluid" align="center">
							</div>
							<div class="row-fluid" align="center">
								<a class="button sButton bMuddy profileRemoveUser" href="#" id="removeUser_<?=$user->id?>" rel="<?=$user->user ?>">Remove User forever</a>
							</div>
						</div>
					</div>
				</div>
			</div>	
		</div>	
		<?php } ?>
		
	</div>
</div>

